import request from "@/plugins/request";
import type { BasicResType } from "#/basic";


export const userAction = (params: any): Promise<BasicResType> => {
  return request({
    url: "/api/get/userAction",
    method: "get",
    params,
  }).then((res: BasicResType) => {
    return res || {};
  });
};
export const visitApi = (params: any): Promise<BasicResType> => {
  return request({
    url: "/api/get/visitLog",
    method: "get",
    params,
  }).then((res: BasicResType) => {
    return res || {};
  });
};
export const errorApi = (params: any): Promise<BasicResType> => {
  return request({
    url: "/api/get/errorLog",
    method: "get",
    params,
  }).then((res: BasicResType) => {
    return res || {};
  });
};
export const httpApi = (params: any): Promise<BasicResType> => {
  return request({
    url: "/api/get/httpLog",
    method: "get",
    params,
  }).then((res: BasicResType) => {
    return res || {};
  });
};